import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Deal {
    public static void main(String[] args) throws Exception{
        System.out.println(System.getProperty("PATH"));
        String command = "curl -6 ifconfig.me";
        Process process = Runtime.getRuntime().exec(command);

        BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));
        String line;
        while ((line = reader.readLine()) != null) {
            System.out.println("line: " + line);
        }

    }
}
